package com.stadium.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * 招募表
 *
 * @author wsl
 * @email
 * @date 2021-05-22 07:47:13
 */
@Data
@ApiModel(value = "招募表Vo")
public class RecruitPlayersVo {
    private static final long serialVersionUID = 1L;

    @Length(min = 0, max = 36)
    @ApiModelProperty(value = "id")
    private String id;

    @Length(min = 0, max = 2)
    @ApiModelProperty(value = "招募类型（1：招募球员，2：寻找球队）",required = true)
    private String type;

    @ApiModelProperty(value = "分类",required = true)
    private String categoryId;

    @Length(min = 0, max = 36)
    @ApiModelProperty(value = "发布人id")
    private String userId;

    @Length(min = 0, max = 200)
    @ApiModelProperty(value = "标题")
    private String title;

    @Length(min = 0, max = 100)
    @ApiModelProperty(value = "活动区域",required = true)
    private String area;

    @Length(min = 0, max = 36)
    @ApiModelProperty(value = "球队id")
    private String teamId;

    @ApiModelProperty(value = "内容")
    private String content;


    @ApiModelProperty(value = "发布时间",hidden = true)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date releaseTime;

    @ApiModelProperty(value = "图片")
    List<RRecruitPhotoVo> photoVoList;

}
